package com.itheima.ai.entity.vo;

import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class Result {
    private Integer ok;
    private String message;

    public Result(Integer ok, String message) {
        this.ok = ok;
        this.message = message;
    }

    public static Result ok(){
        return new Result(1,"ok");
    }

    public static Result fail(String message) {
        return new Result(0, message);
    }
}
